<html>  
 <head>  
  <script type="application/javascript"> 
    function draw(oEvent) {
			var canvas = document.getElementById("canvas");  
			canvas.width = canvas.width;
			var ctx = canvas.getContext("2d");
			var img = new Image();
			img.src = 'reptile.png'; 
			ctx.drawImage(img,oEvent.clientX,oEvent.clientY);
	}
  </script>  
 </head>  
 <body onload="draw()">  
   <canvas id="canvas" width="1260" height="585"
   onclick="draw(event)"></canvas>
 </body>  
</html> 